/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.wms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.wms.entity.Inventory;
import com.jeeplus.modules.wms.mapper.InventoryMapper;

/**
 * 库存查询Service
 * @author sld
 * @version 2017-11-27
 */
@Service
@Transactional(readOnly = true)
public class InventoryService extends CrudService<InventoryMapper, Inventory> {
 @Autowired
 private InventoryMapper inventoryMapper;
	public Inventory get(String id) {
		return super.get(id);
	}
	
	public List<Inventory> findList(Inventory inventory) {
		return super.findList(inventory);
	}
	public List<Inventory> findList1(Inventory inventory) {
		return inventoryMapper.findList1(inventory);
	}
	
	public Page<Inventory> findPage(Page<Inventory> page, Inventory inventory) {
		return super.findPage(page, inventory);
	}
	
	@Transactional(readOnly = false)
	public void save(Inventory inventory) {
		super.save(inventory);
	}
	
	@Transactional(readOnly = false)
	public void delete(Inventory inventory) {
		super.delete(inventory);
	}
	
}